export default {
	onLoad(){
		let whitePages = ['pages/resource/teacher/detail','pages/resource/base/detail','pages/resource/supplier/detail','pages/product/detail','pages/sample/detail'];
		let pages = getCurrentPages();
		
		let currentPage = pages[pages.length -1];
		console.log('authshare',currentPage,whitePages.includes(currentPage.route))
		if(whitePages.includes(currentPage.route)){
			// uni.hideShareMenu({
			// 	hideShareItems:['shareTimeline']
			// })
			// #ifdef MP-WEIXIN
				wx.hideShareMenu({
					menus:['shareTimeline']
				})
			// #endif
			
			
		} else {
			uni.hideShareMenu()
			
		}
		
	}
}